package day2;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Prize {
    public static void main(String[] args) {
        double java;
        double music;
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入java和音乐的成绩：");
        java=sc.nextDouble();
        music=sc.nextDouble();
        boolean b=(java>90&&music>80) || (java==100&&music>70);
        if(b){
            System.out.println("有华为mate XT作为奖励");
        }
//        if((java>90&&music>80) || (java==100&&music>70)){
//            System.out.println("有华为mate XT作为奖励");
//        }

    }
}
